Response
└─Xml
public class Xml
extends Response
Method Summary | |
---|---|
protected mixed | output(mixed data) 处理数据 |
protected string | xmlEncode(mixed data, string root, string item, string attr, string id, string encoding) XML编码 |
protected string | dataToXml(mixed data, string item, string id) 数据XML编码 |
Methods inherited from think\Response | |
---|---|
__construct, cacheControl, code, content, contentType, create, data, eTag, expires, getCode, getContent, getData, getHeader, header, lastModified, options, output, send |
protected mixed output(mixed data)
处理数据
protected string xmlEncode(mixed data, string root, string item, string attr, string id, string encoding)
XML编码
protected string dataToXml(mixed data, string item, string id)
数据XML编码